#include <stdio.h>
int main()
{
    int shaobing(int a,int b);
    int n;
    int k;
printf("输入要摊的烧饼和炉子数：");
scanf("%d,%d",&n,&k);
printf("结果是:%d",shaobing(n,k));
return 0;
}



int shaobing(int a,int b)
{
    int total;
    int result;
 total=a*2;
 if(a<=b)
 {
   return 2;
 }
 result=total/b;
 if(total%b!=0)
         {
         result++;
         }
 return result;